import request from "@/utils/request";

//获取数据
export function getCategory(params) {
  return request({
    url: "/category/page",
    method: "get",
    params,
  });
}
//增加接口
export function addCategory(data) {
  return request({
    url: "/category",
    method: "post",
    data,
  });
}

export function changeCategory(data) {
  return request({
    url: "/category",
    method: "put",
    data,
  });
}

//分页接口
export function changeStatus(data) {
  return request({
    url: "/category",
    method: "put",
    data,
  });
}
